Repository navigation
fix(inference): discover Traex models and recover occupied proxy ports - #156
Merged
ScriptedAlchemy merged 1 commit intoNov 18, 2026
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Traex could appear on an iPhone with the stock Codex models even when its endpoint was offline. Separately, a leftover CLIProxyAPI process could hold T3's saved port and keep returning HTTP 503 after a restart.
This change reads the model catalog from the actual Traex endpoint. A linked host with inference sharing enabled can advertise its own Traex bridge. A client authorized on both environments provisions a scoped grant once, after which the consumer can use the host without that client staying online. Reopening the picker refreshes availability. If every route is offline, Traex disappears. Saved chats keep their model history, and both clients block a model the endpoint no longer offers. iOS formats saved Codex model IDs for display.
The managed proxy starts on an available port with a configuration specific to the child process. This lets it recover without terminating the process that owns the old port.
The changed-file gate passed, including 605 tests and typechecking across 38 packages. Verified the picker on an iPhone 17 simulator with isolated direct and peer endpoints, including peer disconnect and reconnect. A request to the peer-only model completed through the consumer. The remote Mac was unavailable for a hardware test. Two real CLIProxyAPI processes also ran concurrently with separate management credentials.
Direct Traex endpoint · Peer-only Traex endpoint
Implemented and verified with GPT-6 through Codex.